import java.util.ArrayList;

/**
 * Project: SecuritySnort
 * This class will take care of displaying info for the other commands.
 *
 * @author Jonathan Buttner
 * @version Feb 15, 2010
 */

public class HelpCmd extends Command
{
	
	/**************************************************************************
	 * 							Globals
	 *************************************************************************/
	private static final String HELP_FILE = "help.txt";
	/**************************************************************************
	 * 							Constructors
	 *************************************************************************/
	
	/**
	 * This constructor sets up the object.
	 */
	public HelpCmd()
	{
		_name = "help";
	}
	
	/**************************************************************************
	 * 							Public Methods
	 *************************************************************************/
	/**
	 * This method executes the help command.
	 * 
	 * @param cmdLine is an ArrayList holding the arguments
	 * passed in through the console.
	 * NOTE: cmdLine not used...
	 */
	public void exeCommand( ArrayList < String > cmdLine )
	{
		RndAParser parser = new RndAParser( HELP_FILE, 0 );
		System.out.println( parser.readInFile() );
		parser.close();
	}
}
